import request from '@/utils/request'

// 查询安全检查列表
export function listAfSafetyInspection(query) {
  return request({
    url: '/security/afSafetyInspection/list',
    method: 'get',
    params: query
  })
}

// 查询安全检查详细
export function getAfSafetyInspection(id) {
  return request({
    url: '/security/afSafetyInspection/' + id,
    method: 'get'
  })
}

// 新增安全检查
export function addAfSafetyInspection(data) {
  return request({
    url: '/security/afSafetyInspection',
    method: 'post',
    data: data
  })
}

// 修改安全检查
export function updateAfSafetyInspection(data) {
  return request({
    url: '/security/afSafetyInspection',
    method: 'put',
    data: data
  })
}

// 删除安全检查
export function delAfSafetyInspection(id) {
  return request({
    url: '/security/afSafetyInspection/' + id,
    method: 'delete'
  })
}
